package br.com.single.modelo.estoque;

import java.util.Date;

import br.com.single.publico.Cdfornec;
import br.com.single.publico.Cditemtabelageneri;
import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import org.springframework.roo.addon.dbre.RooDbManaged;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(versionField = "", table = "mvmovimecompra", schema = "estoque")
@RooDbManaged(automaticallyDelete = true)
public class Mvmovimecompra {

	@OneToOne
    @JoinColumn(name = "sequenmovime", nullable = false, insertable = false, updatable = false)
    private Mvmovimeestoqu mvmovimeestoqu;

	@ManyToOne
    @JoinColumn(name = "fornec", referencedColumnName = "codigofornec",columnDefinition="codigonumero")
    private Cdfornec fornec;

	@ManyToOne
    @JoinColumns({ @JoinColumn(name = "tabelatc", referencedColumnName = "codigotabela",columnDefinition="bpchar"), @JoinColumn(name = "tipocobran", referencedColumnName = "elementabela",columnDefinition="classisimple") })
    private Cditemtabelageneri cditemtabelageneri;

	@ManyToOne
    @JoinColumns({ @JoinColumn(name = "tabelafp", referencedColumnName = "codigotabela",columnDefinition="bpchar"), @JoinColumn(name = "formapagame", referencedColumnName = "elementabela",columnDefinition="classisimple") })
    private Cditemtabelageneri cditemtabelageneri1;

	@Column(name = "dataemissa",columnDefinition="data")
    private Date dataemissa;

	@Column(name = "desconvencim",columnDefinition="percen")
    private Double desconvencim;

	@Column(name = "desconprodut",columnDefinition="valorsimple")
    private Double desconprodut;

	@Column(name = "desconservic",columnDefinition="valorsimple")
    private Double desconservic;

	@Column(name = "desconespeci",columnDefinition="valorsimple")
    private Double desconespeci;

	@Column(name = "despesincrem",columnDefinition="valorsimple")
    private Double despesincrem;

	@Column(name = "valorfrete",columnDefinition="valorsimple")
    private Double valorfrete;

	@Column(name = "valorseguro",columnDefinition="valorsimple")
    private Double valorseguro;

	@Column(name = "valoroutros",columnDefinition="valorsimple")
    private Double valoroutros;

	@Column(name = "valordocume",columnDefinition="valorsimple")
    private Double valordocume;

	@Column(name = "sinalanteci",columnDefinition="valorsimple")
    private Double sinalanteci;

	@Column(name = "arquivlayout",columnDefinition="arquiv")
    private String arquivlayout;

	@Column(name = "origem",columnDefinition="importexport")
    private String origem;

	@Column(name = "observ",columnDefinition="observ")
    private String observ;

	public Mvmovimeestoqu getMvmovimeestoqu() {
        return mvmovimeestoqu;
    }

	public void setMvmovimeestoqu(Mvmovimeestoqu mvmovimeestoqu) {
        this.mvmovimeestoqu = mvmovimeestoqu;
    }

	public Cdfornec getFornec() {
        return fornec;
    }

	public void setFornec(Cdfornec fornec) {
        this.fornec = fornec;
    }

	public Cditemtabelageneri getCditemtabelageneri() {
        return cditemtabelageneri;
    }

	public void setCditemtabelageneri(Cditemtabelageneri cditemtabelageneri) {
        this.cditemtabelageneri = cditemtabelageneri;
    }

	public Cditemtabelageneri getCditemtabelageneri1() {
        return cditemtabelageneri1;
    }

	public void setCditemtabelageneri1(Cditemtabelageneri cditemtabelageneri1) {
        this.cditemtabelageneri1 = cditemtabelageneri1;
    }

	public Date getDataemissa() {
        return dataemissa;
    }

	public void setDataemissa(Date dataemissa) {
        this.dataemissa = dataemissa;
    }

	public Double getDesconvencim() {
        return desconvencim;
    }

	public void setDesconvencim(Double desconvencim) {
        this.desconvencim = desconvencim;
    }

	public Double getDesconprodut() {
        return desconprodut;
    }

	public void setDesconprodut(Double desconprodut) {
        this.desconprodut = desconprodut;
    }

	public Double getDesconservic() {
        return desconservic;
    }

	public void setDesconservic(Double desconservic) {
        this.desconservic = desconservic;
    }

	public Double getDesconespeci() {
        return desconespeci;
    }

	public void setDesconespeci(Double desconespeci) {
        this.desconespeci = desconespeci;
    }

	public Double getDespesincrem() {
        return despesincrem;
    }

	public void setDespesincrem(Double despesincrem) {
        this.despesincrem = despesincrem;
    }

	public Double getValorfrete() {
        return valorfrete;
    }

	public void setValorfrete(Double valorfrete) {
        this.valorfrete = valorfrete;
    }

	public Double getValorseguro() {
        return valorseguro;
    }

	public void setValorseguro(Double valorseguro) {
        this.valorseguro = valorseguro;
    }

	public Double getValoroutros() {
        return valoroutros;
    }

	public void setValoroutros(Double valoroutros) {
        this.valoroutros = valoroutros;
    }

	public Double getValordocume() {
        return valordocume;
    }

	public void setValordocume(Double valordocume) {
        this.valordocume = valordocume;
    }

	public Double getSinalanteci() {
        return sinalanteci;
    }

	public void setSinalanteci(Double sinalanteci) {
        this.sinalanteci = sinalanteci;
    }

	public String getArquivlayout() {
        return arquivlayout;
    }

	public void setArquivlayout(String arquivlayout) {
        this.arquivlayout = arquivlayout;
    }

	public String getOrigem() {
        return origem;
    }

	public void setOrigem(String origem) {
        this.origem = origem;
    }

	public String getObserv() {
        return observ;
    }

	public void setObserv(String observ) {
        this.observ = observ;
    }
}
